package net.bolue.sysmng.model;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import net.bolue.console.model.BusiBase;
import net.bolue.sysmng.db.DbOpUtil;
import net.bolue.sysmng.exception.BolueException;
import net.bolue.sysmng.tblbean.DelRes;
import net.bolue.web.report.RepConstants;

/**
 * 删除资源业务
 * @author Administrator
 *
 */
public class DelResModel extends BusiBase{

	public DelResModel() {
		super();
	}

	public DelResModel(HttpServletRequest request) {
		super(request);
	}

	/**
	 * 获得删除资源
	 * @param subSys
	 * @param deleteId
	 * @return
	 * @throws BolueException
	 */
	public DelRes getDelRes(String subSys, String deleteId) throws BolueException{
		Map<String,Object> whereMap = new HashMap<String,Object>();
		whereMap.put("SUBSYS", subSys);
		whereMap.put("DELETEID", deleteId);
		DbOpUtil dbOpUtil = new DbOpUtil(RepConstants.SYSMNG_SUBSYS_KEY);
		DelRes delRes = dbOpUtil.getOne(DelRes.class,"st_delres", null, whereMap);
		return delRes;
	}
	
}
